import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations'
import actions from './action'
import getters from './getters'

Vue.use(Vuex)

const state = {
  localCity: {}, // 定位到的城市
  currentCity: {}, // 当前选择的城市
  currentTab: {} // 当前选择的首页下标
}

export default new Vuex.Store({
  state,
  getters,
  actions,
  mutations
})
